package cn.com.api.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

@Service
public interface ApiUploadService {

	/**
	 * @Title: uploadFileToQiNiu
	 * @Description: 上传文件到七牛
	 * @param files
	 *            文件流集合
	 * @return List<String> 地址列表
	 */
	public List<String> uploadFileToQiNiu(MultipartFile[] files) throws Exception;

	/**
	 * @Title: uploadBase64Str
	 * @Description: 上传文件
	 * @param imgBase64Str
	 *            文件的base64字符串
	 * @return String 地址
	 */
	public String uploadBase64Str(String imgBase64Str, String suffix) throws Exception;
	

	/**
	 * @Title: uploadFileToServer
	 * @Description: 上传文件到服务器
	 * @param files
	 *            文件流集合
	 * @param foldername 
	 * @param request 
	 * @return List<String> 地址列表
	 */
	public List<String> uploadFileToServer(MultipartFile[] files, HttpServletRequest request, String foldername) throws Exception;

}
